# 推荐使用官方主源 + 私有源
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
source 'https://gitee.com/wonder_ios_sdk/gitee_wonderpodspecs.git'
source 'https://gitee.com/wonder_ios_sdk/WDGroMoreframework.git'

platform :ios, '12.0'
workspace 'WDGroMore.xcworkspace'
project 'WDGroMore.xcodeproj'

# ---------- 通用依赖 ----------
use_frameworks! :linkage => :static

# 可选：所有 target 共用的 pod（如果你希望抽到外层）
def common_pods
  pod 'Masonry', '~> 1.1.0'
  pod 'AFNetworking', '~> 4.0.1'
end

# ---------- WDBMSDemo ----------
target 'WDBMS' do
  project 'WDBMS.xcodeproj'    # 指定此 target 使用哪个 project

  common_pods
end

# ---------- WDGroMore ----------
target 'WDGroMore' do
  # gm_release_target!

  pod 'BDASignalSDK', '1.0.5'

  pod 'Ads-CN-Beta','6.9.0.5'
  pod 'Ads-CN-Beta/BUAdTestMeasurement','6.9.0.5'
  pod 'Ads-CN-Beta/CSJMediation','6.9.0.5'
  pod 'Ads-CN-Beta/BUAdSDK','6.9.0.5'
  

  # 引入融合Adapters(推荐使用自动拉取adapter工具，此处无需引入)
  pod 'GMGdtAdapter-Beta', '4.15.40.1'
  pod 'GMKsAdapter-Beta', '3.3.76.1'
  pod 'GMMintegralAdapter-Beta', '7.7.7.0'

  # 引入使用到的ADN SDK，开发者请按需引入
  pod 'GDTMobSDK', '4.15.40'
  pod 'KSAdSDK', '3.3.76'
  pod 'MintegralAdSDK', '7.7.7'
                      

  pod 'ThinkingSDK', '3.1.0'
  pod 'UMCommon', '7.5.2'
  pod 'UMDevice', '3.4.0'
  pod 'UMCCommonLog', :configuration => ['Debug']
  pod 'SVProgressHUD', '2.3.1'
  pod 'Masonry', '1.1.0'
  pod 'AFNetworking', '4.0.1'
  common_pods

  # 子 target：demo 项目
  target 'wonderGroMoreDemo' do
    pod 'Masonry', '1.1.0'
    pod 'WDGroMore','1.2.0'
  end
end

# ---------- 通用 post_install ----------
post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['OTHER_LDFLAGS'] ||= ['$(inherited)', '-ObjC']
    end
  end
end
